package com.zb.controller;

import java.util.HashMap;
import java.util.Map;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class IndexController {

	@RequestMapping("/index")
	public Map<String,Object> index(){
		Map<String,Object> map = new HashMap<String, Object>();
		map.put("username", "张三");
		return map;
	}
	
	
	@RequestMapping("/add")
	public Map<String,Object> add(){
		Map<String,Object> map = new HashMap<String, Object>();
		map.put("message", "添加信息");
		return map;
	}
	
	@RequestMapping("/delete")
	public Map<String,Object> delete(){
		Map<String,Object> map = new HashMap<String, Object>();
		map.put("message", "删除信息");
		return map;
	}
	
	
}
